Skip to content

gemini support lfs cache and download#661

Merged
genedna merged 5 commits into
gitmono-dev:mainfrom
wujian0327:main
Oct 28, 2024
Merged

gemini support lfs cache and download#661
genedna merged 5 commits into
gitmono-dev:mainfrom
wujian0327:main

Conversation

@wujian0327

Copy link
Copy Markdown
Contributor

gemini::lfs::share_lfs
paras
bootstrap_node: bootstrap_node
file_hash: file_hash
hash_type: hash_type
file_size: file_size
origin: origin
for example

{
 "bootstrap_node":"https://gitmono.org/relay",
 "file_hash":"52c90a86cb034b7a1c4beb79304fa76bd0a6cbb7b168c3a935076c714bd1c6b6",
 "hash_type":"sha256",
 "file_size":199246498,
 "origin":"p2p://t14id7uQxwneJ2PnPtaA3GSUwxTx6HTaq1UkayQVWSPT/sha256/52c90a86cb034b7a1c4beb79304fa76bd0a6cbb7b168c3a935076c714bd1c6b6"
}

This method will send a Post request to the relay to share lfs

gemini::lfs::create_lfs_download_tunnel
create lfs download local ports

Paras
bootstrap_node: bootstrap_node
ztm_agent_port: ztm_agent_port
file_uri: file_uri
for example

{
"bootstrap_node":"https://gitmono.org/relay",
"ztm_agent_port":777,
"file_uri":"p2p://t14id7uQxwneJ2PnPtaA3GSUwxTx6HTaq1UkayQVWSPT/sha256/52c90a86cb034b7a1c4beb79304fa76bd0a6cbb7b168c3a935076c714bd1c6b6"
}
Return
local_port1, local_port2,...

Each port is for a remote peer

@vercel

vercel Bot commented Oct 28, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 8:21am

@genedna
genedna added this pull request to the merge queue Oct 28, 2024
Merged via the queue into gitmono-dev:main with commit 56bf993 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants